package com.zlc.common.common.constant;

import lombok.AllArgsConstructor;
import lombok.Getter;

@Getter
@AllArgsConstructor
public enum DeptTypeEnum {

    GROUP("GROUP","集团"),
    COMPANY("COMPANY","公司"),
    MANAGE_DEPT("MANAGE_DEPT","管理部门"),
    BUSINESS_DEPT("BUSINESS_DEPT","业务部门");

    final String deptType;
    final String remark;

    public static DeptTypeEnum deptType(String deptType){
        DeptTypeEnum[] values = DeptTypeEnum.values();
        for(DeptTypeEnum typeEnum : values){
            if(typeEnum.getDeptType().equals(deptType)){
                return typeEnum;
            }
        }
        return null;
    }
}
